import Vue from 'vue'
import Router from 'vue-router'
import Home from '../pages/Home'
import Classify from '../pages/Classify.vue'
import Shopping from '../pages/Shopping.vue'
import Mine from '../pages/Mine.vue'
import Login from '../pages/Login.vue'
import ForgetPsw from '../pages/ForgetPsw.vue'
import Regist from '../pages/Regist.vue'
import PersonalInfo from '../pages/PersonalInfo.vue'
import Add from '../pages/Add.vue'
import AddClassify from '../pages/AddClassify.vue'
import AddShopping from '../pages/AddShopping.vue'
import GoodsList from '../pages/GoodsList.vue'
import Product from '../pages/Product.vue'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Home
    },
    {
      path: '/classify',
      component: Classify
    },
    {
      path: '/shopping',
      component: Shopping
    },
    {
      path: '/mine',
      component: Mine
    },
    {
      path: '/login',
      component: Login
    },
    {
      path: '/forgetPsw',
      component: ForgetPsw
    },
    {
      path: '/regist',
      component: Regist
    },
    {
      path: '/mine/personalInfo',
      component: PersonalInfo
    },
    {
      path: '/add',
      component: Add
    },
    {
      path: '/add/classify',
      component: AddClassify
    },
    {
      path: '/add/shopping',
      component: AddShopping
    },
    {
      path: '/:classifyName/:tea',
      component: GoodsList
    },
    {
      path: '/goods/Product/:id',
      component: Product
    },
  ]
})
